package com.yanfan.iot.domain;

import com.yanfan.common.annotation.Excel;
import com.yanfan.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 告警通知模版关联对象 iot_alert_notify_template
 *
 * @author kerwincui
 * @date 2024-01-29
 */
public class AlertNotifyTemplate extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 告警id
     */
    @Excel(name = "告警id")
    private Long alertId;

    /**
     * 通知模版id
     */
    @Excel(name = "通知模版id")
    private Long notifyTemplateId;

    public Long getAlertId() {
        return alertId;
    }

    public void setAlertId(Long alertId) {
        this.alertId = alertId;
    }

    public Long getNotifyTemplateId() {
        return notifyTemplateId;
    }

    public void setNotifyTemplateId(Long notifyTemplateId) {
        this.notifyTemplateId = notifyTemplateId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("alertId", getAlertId())
                .append("notifyTemplateId", getNotifyTemplateId())
                .toString();
    }
}
